const routes = [
  {
    path: "/",
    name: "/",
    meta: {
      title: "绚星销售助手"
    },
    component: () => import("@/views/appDownload/index.vue")
  },
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/home/index.vue")
  },
  {
    path: "/changeAccount",
    name: "changeAccount",
    meta: {
      title: "账号"
    },
    component: () => import("@/views/changeAccount/index.vue")
  },
  {
    path: "/interviewBot",
    name: "interviewBot",
    meta: {
      title: "面试助手"
    },
    component: () => import("@/views/interviewBot/index.vue")
  },
  {
    path: "/productAssistant",
    name: "productAssistant",
    meta: {
      title: "智能商品推荐师"
    },
    component: () => import("@/views/productAssistant/index.vue")
  },
  {
    path: "/salesTemplate",
    name: "salesTemplate",
    meta: {
      title: "沟通模版"
    },
    component: () => import("@/views/salesTemplate/index.vue")
  },
  {
    path: "/commonCozeBot",
    name: "commonCozeBot",
    meta: {
      title: "AI小助理"
    },
    component: () => import("@/views/commonCozeBot/index.vue")
  },
  {
    path: "/customerDetail",
    name: "customerDetailPC",
    meta: {
      title: "客户详情",
      openInNewTab: true,
      openInNewTabPC: false
    },
    component: () => import("@/views/customerAndBusiness/customerDetail/index.vue")
  },
  {
    path: "/businessOpportDetail",
    name: "businessOpportDetail",
    meta: {
      title: "商机详情",
      openInNewTab: true,
      openInNewTabPC: false
    },
    query: {
      opportunityId: ''
    },
    component: () => import("@/views/customerAndBusiness/businessDetail/index.vue")
  },
  {
    path: "/appDownload",
    name: "appDownload",
    meta: {
      title: "绚星销售助手"
    },
    component: () => import("@/views/appDownload/index.vue")
  },
  {
    path: "/orderVisit",
    name: "orderVisit",
    meta: {
      title: "安排沟通",
    },
    component: () => import("@/views/orderVisit/index.vue")
  },
  {
    path: "/orderVisit/attendList",
    name: "attendList",
    meta: {
      title: "人员列表"
    },
    component: () => import("@/views/orderVisit/attendList.vue")
  },
  {
    path: "/orderVisit/customerList",
    name: "customerList",
    meta: {
      title: "客户人员列表"
    },
    component: () => import("@/views/orderVisit/customerListView.vue")
  },
  {
    path: "/orderVisit/createAttend",
    name: "createAttend",
    meta: {
      title: "添加参会人"
    },
    component: () => import("@/views/orderVisit/createCustomerAttend.vue")
  },
  {
    path: "/visitDetail",
    name: "visitDetail",
    meta: {
      title: "沟通详情"
    },
    component: () => import("@/views/visitDetail/index.vue")
  },
  {
    path: "/preVisit",
    name: "preVisit",
    meta: {
      title: "准备"
    },
    component: () => import("@/views/preVisit/index.vue")
  },
  {
    path: "/myXmate/myVisit",
    name: "myVisit",
    meta: {
      title: "我的沟通"
    },
    component: () => import("@/views/myXmate/myVisit/index.vue")
  },
  {
    path: "/visitList",
    name: "visitList",
    meta: {
      title: "计划列表"
    },
    component: () => import("@/views/visitList/index.vue")
  },  
  {
    path: "/myXmate/myCustomer",
    name: "myCustomer",
    meta: {
      title: "我的客户"
    },
    component: () => import("@/views/myXmate/myCustomer/index.vue")
  },
  {
    path: "/myXmate/myBusinessOpport",
    name: "myBusinessOpport",
    meta: {
      title: "我的商机"
    },
    component: () => import("@/views/myXmate/myBusinessOpport/index.vue")
  },
  {
    path: "/myXmate/myTeam",
    name: "myTeam",
    meta: {
      title: "我的团队"
    },
    component: () => import("@/views/myXmate/myTeam/index.vue")
  },

  {
    path: "/myXmate/myTeam/teamReport",
    name: "teamReport",
    meta: {
      title: "团队报告",
      openInNewTab: true,
      openInNewTabPC: false,
      
    },
    component: () =>
      import("@/views/myXmate/myTeam/teamReport/teamReportDetail.vue")
  },
  {
    path: "/myXmate/myApplication",
    name: "myApplication",
    meta: {
      title: "ai应用"
    },
    component: () => import("@/views/myXmate/myApplication/index.vue")
  },
  {
    path: "/previewFile",
    name: "previewFile",
    meta: {
      title: "预览文件"
    },
    component: () => import("@/views/previewFile/index.vue")
  },
  {
    path: "/register",
    name: "register",
    meta: {
      title: "注册"
    },
    component: () => import("@/views/register/index.vue")
  },

  {
    path: "/badge",
    name: "badge",
    meta: {
      title: "工牌设备绑定"
    },
    component: () => import("@/views/badge/badgeEdit.vue")
  },
  {
    path: "/badge/record",
    name: "recordBadge",
    meta: {
      title: "工牌录制"
    },
    component: () => import("@/views/badge/badgeRecord.vue")
  },
  {
    path: "/msgCenter/msgList",
    name: "msgList",
    meta: {
      title: "消息中心"
    },
    component: () => import("@/views/messageCenter/messageList/index.vue")
  },
  {
    path: "/msgCenter/msgDetail",
    name: "msgDetail",
    meta: {
      title: "实时总结详情"
    },
    component: () => import("@/views/messageCenter/messageDetail/index.vue")
  },
  {
    path: "/teamDemand",
    name: "teamDemand",
    meta: {
      title: "客户洞察"
    },
    component: () => import("@/views/teamDemand/index.vue")
  },
  {
    path: "/record/:confId?",
    name: "record",
    component: () => import("@/views/minutes/index.vue"),
    meta: {
      title: "纪要",
      openInNewTab: true,
      hiddenAppBar: true,
      openInNewTabPC: true
    }
  },
  {
    path: "/record/share/:shareId?",
    name: "shareRecord",
    component: () => import("@/views/minutes/adaptiveOldShare.vue"),
    meta: {
      title: "纪要",
    }
  },
  {
    path: "/study",
    name: "study",
    meta: {
      title: "能力提升",
      openInNewTab: true,
    },
    component: () => import("@/views/study/mobile/index.vue")
  },
  {
    path: "/study/generate/:confId?",
    name: "studyGenerate",
    meta: {
      title: "生成课程",
      disableOpenInNewTab: true,
    },
    component: () => import("@/views/study/mobile/CustomerGenerat.vue")
  },

  {
    path: "/study/detail/:confId?",
    name: "studyDetail",
    meta: {
      title: "能力提升",
      openInNewTab: true,

    },
    component: () => import("@/views/study/mobile/studyDetail.vue")
  }
];

export default routes;
